home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / hyperbole / wrolo-logic.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  5.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 35 32 3a 35 | 39 20 31 39 39 35 0a 3b | 14:52:5|9 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 65 78 |;; from |file /ex|
|00000060| 70 6f 72 74 2f 77 69 6c | 6c 6f 77 33 2f 78 65 6d |port/wil|low3/xem|
|00000070| 61 63 73 2d 31 39 2e 31 | 33 2d 72 65 6c 65 61 73 |acs-19.1|3-releas|
|00000080| 65 2f 65 64 69 74 6f 72 | 2f 6c 69 73 70 2f 68 79 |e/editor|/lisp/hy|
|00000090| 70 65 72 62 6f 6c 65 2f | 77 72 6f 6c 6f 2d 6c 6f |perbole/|wrolo-lo|
|000000a0| 67 69 63 2e 65 6c 0a 3b | 3b 3b 20 65 6d 61 63 73 |gic.el.;|;; emacs|
|000000b0| 20 76 65 72 73 69 6f 6e | 20 31 39 2e 31 33 20 58 | version| 19.13 X|
|000000c0| 45 6d 61 63 73 20 4c 75 | 63 69 64 2e 0a 3b 3b 3b |Emacs Lu|cid..;;;|
|000000d0| 20 62 79 74 65 63 6f 6d | 70 20 76 65 72 73 69 6f | bytecom|p versio|
|000000e0| 6e 20 32 2e 32 35 3b 20 | 31 2d 53 65 70 2d 39 34 |n 2.25; |1-Sep-94|
|000000f0| 2e 0a 3b 3b 3b 20 6f 70 | 74 69 6d 69 7a 61 74 69 |..;;; op|timizati|
|00000100| 6f 6e 20 69 73 20 6f 6e | 2e 0a 3b 3b 3b 20 74 68 |on is on|..;;; th|
|00000110| 69 73 20 66 69 6c 65 20 | 75 73 65 73 20 6f 70 63 |is file |uses opc|
|00000120| 6f 64 65 73 20 77 68 69 | 63 68 20 64 6f 20 6e 6f |odes whi|ch do no|
|00000130| 74 20 65 78 69 73 74 20 | 69 6e 20 45 6d 61 63 73 |t exist |in Emacs|
|00000140| 20 31 38 2e 0a 0a 28 69 | 66 20 28 61 6e 64 20 28 | 18...(i|f (and (|
|00000150| 62 6f 75 6e 64 70 20 27 | 65 6d 61 63 73 2d 76 65 |boundp '|emacs-ve|
|00000160| 72 73 69 6f 6e 29 0a 09 | 20 28 6f 72 20 28 61 6e |rsion)..| (or (an|
|00000170| 64 20 28 62 6f 75 6e 64 | 70 20 27 65 70 6f 63 68 |d (bound|p 'epoch|
|00000180| 3a 3a 76 65 72 73 69 6f | 6e 29 20 65 70 6f 63 68 |::versio|n) epoch|
|00000190| 3a 3a 76 65 72 73 69 6f | 6e 29 0a 09 20 20 20 20 |::versio|n).. |
|000001a0| 20 28 73 74 72 69 6e 67 | 2d 6c 65 73 73 70 20 65 | (string|-lessp e|
|000001b0| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 20 22 31 39 |macs-ver|sion "19|
|000001c0| 22 29 29 29 0a 20 20 20 | 20 28 65 72 72 6f 72 20 |"))). | (error |
|000001d0| 22 54 68 69 73 20 66 69 | 6c 65 20 77 61 73 20 63 |"This fi|le was c|
|000001e0| 6f 6d 70 69 6c 65 64 20 | 66 6f 72 20 45 6d 61 63 |ompiled |for Emac|
|000001f0| 73 20 31 39 2e 22 29 29 | 0a 0a 28 72 65 71 75 69 |s 19."))|..(requi|
|00000200| 72 65 20 27 77 72 6f 6c | 6f 29 0a 28 66 73 65 74 |re 'wrol|o).(fset|
|00000210| 20 27 72 6f 6c 6f 2d 6c | 6f 67 69 63 20 23 5b 28 | 'rolo-l|ogic #[(|
|00000220| 66 75 6e 63 20 26 6f 70 | 74 69 6f 6e 61 6c 20 69 |func &op|tional i|
|00000230| 6e 2d 62 75 66 73 20 63 | 6f 75 6e 74 2d 6f 6e 6c |n-bufs c|ount-onl|
|00000240| 79 20 69 6e 63 6c 75 64 | 65 2d 73 75 62 2d 65 6e |y includ|e-sub-en|
|00000250| 74 72 69 65 73 20 6e 6f | 2d 73 75 62 2d 65 6e 74 |tries no|-sub-ent|
|00000260| 72 69 65 73 2d 6f 75 74 | 29 20 22 70 08 3f ad 89 |ries-out|) "p.?..|
|00000270| c1 5c 6e 21 71 c3 14 c5 | 20 88 1e 06 1e 07 c8 c9 |.\n!q...| .......|
|00000280| 0e 5c 6e ac 84 0e 0b aa | 8c 0e 5c 6e 3c ab 84 0e |.\n.....|..\n<...|
|00000290| 5c 6e aa 83 0e 5c 6e 43 | 5c 22 1e 0c cd ce 0e 0c |\n...\nC|\"......|
|000002a0| 5c 22 1e 0f 08 ac aa 0e | 0f d0 55 ac a4 d1 0e 06 |\"......|..U.....|
|000002b0| 21 88 65 62 88 d2 c3 21 | 88 d3 14 d4 0e 07 21 89 |!.eb...!|......!.|
|000002c0| 1e 15 ab 87 d6 0e 15 21 | 88 aa 85 d7 0e 15 21 88 |.......!|......!.|
|000002d0| 29 74 ab 9b d8 0e 0f d0 | 55 ab 83 d9 aa 82 0e 0f |)t......|U.......|
|000002e0| da 0e 0f db 55 ab 83 dc | aa 81 dd de 52 21 88 0e |....U...|....R!..|
|000002f0| 0f 2c 87 22 20 5b 63 6f | 75 6e 74 2d 6f 6e 6c 79 |.,." [co|unt-only|
|00000300| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 63 72 65 61 | get-buf|fer-crea|
|00000310| 74 65 20 72 6f 6c 6f 2d | 64 69 73 70 6c 61 79 2d |te rolo-|display-|
|00000320| 62 75 66 66 65 72 20 6e | 69 6c 20 62 75 66 66 65 |buffer n|il buffe|
|00000330| 72 2d 72 65 61 64 2d 6f | 6e 6c 79 20 65 72 61 73 |r-read-o|nly eras|
|00000340| 65 2d 62 75 66 66 65 72 | 20 64 69 73 70 6c 61 79 |e-buffer| display|
|00000350| 2d 62 75 66 20 6f 62 75 | 66 20 6d 61 70 63 61 72 |-buf obu|f mapcar|
|00000360| 20 23 5b 28 69 6e 2d 62 | 75 66 73 29 20 22 c0 09 | #[(in-b|ufs) "..|
|00000370| 5c 6e 0b 0c 0d 25 87 22 | 20 5b 72 6f 6c 6f 2d 6d |\n...%."| [rolo-m|
|00000380| 61 70 2d 6c 6f 67 69 63 | 20 66 75 6e 63 20 69 6e |ap-logic| func in|
|00000390| 2d 62 75 66 73 20 63 6f | 75 6e 74 2d 6f 6e 6c 79 |-bufs co|unt-only|
|000003a0| 20 69 6e 63 6c 75 64 65 | 2d 73 75 62 2d 65 6e 74 | include|-sub-ent|
|000003b0| 72 69 65 73 20 6e 6f 2d | 73 75 62 2d 65 6e 74 72 |ries no-|sub-entr|
|000003c0| 69 65 73 2d 6f 75 74 5d | 20 36 5d 20 69 6e 2d 62 |ies-out]| 6] in-b|
|000003d0| 75 66 73 20 72 6f 6c 6f | 2d 66 69 6c 65 2d 6c 69 |ufs rolo|-file-li|
|000003e0| 73 74 20 72 65 73 75 6c | 74 20 61 70 70 6c 79 20 |st resul|t apply |
|000003f0| 2b 20 74 6f 74 61 6c 2d | 6d 61 74 63 68 65 73 20 |+ total-|matches |
|00000400| 30 20 70 6f 70 2d 74 6f | 2d 62 75 66 66 65 72 20 |0 pop-to|-buffer |
|00000410| 73 65 74 2d 62 75 66 66 | 65 72 2d 6d 6f 64 69 66 |set-buff|er-modif|
|00000420| 69 65 64 2d 70 20 74 20 | 67 65 74 2d 62 75 66 66 |ied-p t |get-buff|
|00000430| 65 72 2d 77 69 6e 64 6f | 77 20 62 75 66 20 73 65 |er-windo|w buf se|
|00000440| 6c 65 63 74 2d 77 69 6e | 64 6f 77 20 73 77 69 74 |lect-win|dow swit|
|00000450| 63 68 2d 74 6f 2d 62 75 | 66 66 65 72 20 6d 65 73 |ch-to-bu|ffer mes|
|00000460| 73 61 67 65 20 22 4e 6f | 22 20 22 20 6d 61 74 63 |sage "No|" " matc|
|00000470| 68 69 6e 67 20 65 6e 74 | 72 22 20 31 20 22 79 22 |hing ent|r" 1 "y"|
|00000480| 20 22 69 65 73 22 20 22 | 20 66 6f 75 6e 64 20 69 | "ies" "| found i|
|00000490| 6e 20 72 6f 6c 6f 64 65 | 78 2e 22 5d 20 36 20 22 |n rolode|x."] 6 "|
|000004a0| 5c 0a 41 70 70 6c 79 20 | 46 55 4e 43 20 74 6f 20 |\.Apply |FUNC to |
|000004b0| 61 6c 6c 20 65 6e 74 72 | 69 65 73 20 69 6e 20 6f |all entr|ies in o|
|000004c0| 70 74 69 6f 6e 61 6c 20 | 49 4e 2d 42 55 46 53 2c |ptional |IN-BUFS,|
|000004d0| 20 64 69 73 70 6c 61 79 | 20 65 6e 74 72 69 65 73 | display| entries|
|000004e0| 20 77 68 65 72 65 20 46 | 55 4e 43 20 69 73 20 6e | where F|UNC is n|
|000004f0| 6f 6e 2d 6e 69 6c 2e 0a | 49 66 20 49 4e 2d 42 55 |on-nil..|If IN-BU|
|00000500| 46 53 20 69 73 20 6e 69 | 6c 2c 20 27 72 6f 6c 6f |FS is ni|l, 'rolo|
|00000510| 2d 66 69 6c 65 2d 6c 69 | 73 74 27 20 69 73 20 75 |-file-li|st' is u|
|00000520| 73 65 64 2e 20 20 49 66 | 20 6f 70 74 69 6f 6e 61 |sed. If| optiona|
|00000530| 6c 20 43 4f 55 4e 54 2d | 4f 4e 4c 59 20 69 73 0a |l COUNT-|ONLY is.|
|00000540| 6e 6f 6e 2d 6e 69 6c 2c | 20 64 6f 6e 27 74 20 64 |non-nil,| don't d|
|00000550| 69 73 70 6c 61 79 20 65 | 6e 74 72 69 65 73 2c 20 |isplay e|ntries, |
|00000560| 72 65 74 75 72 6e 20 63 | 6f 75 6e 74 20 6f 66 20 |return c|ount of |
|00000570| 6d 61 74 63 68 69 6e 67 | 20 65 6e 74 72 69 65 73 |matching| entries|
|00000580| 20 6f 6e 6c 79 2e 20 20 | 49 66 0a 6f 70 74 69 6f | only. |If.optio|
|00000590| 6e 61 6c 20 49 4e 43 4c | 55 44 45 2d 53 55 42 2d |nal INCL|UDE-SUB-|
|000005a0| 45 4e 54 52 49 45 53 20 | 66 6c 61 67 20 69 73 20 |ENTRIES |flag is |
|000005b0| 6e 6f 6e 2d 6e 69 6c 2c | 20 46 55 4e 43 20 77 69 |non-nil,| FUNC wi|
|000005c0| 6c 6c 20 62 65 20 61 70 | 70 6c 69 65 64 20 61 63 |ll be ap|plied ac|
|000005d0| 72 6f 73 73 20 61 6c 6c | 0a 73 75 62 2d 65 6e 74 |ross all|.sub-ent|
|000005e0| 72 69 65 73 20 61 74 20 | 6f 6e 63 65 2e 20 20 44 |ries at |once. D|
|000005f0| 65 66 61 75 6c 74 20 69 | 73 20 74 6f 20 61 70 70 |efault i|s to app|
|00000600| 6c 79 20 46 55 4e 43 20 | 74 6f 20 65 61 63 68 20 |ly FUNC |to each |
|00000610| 65 6e 74 72 79 20 61 6e | 64 20 73 75 62 2d 65 6e |entry an|d sub-en|
|00000620| 74 72 79 0a 73 65 70 61 | 72 61 74 65 6c 79 2e 20 |try.sepa|rately. |
|00000630| 20 45 6e 74 72 69 65 73 | 20 61 72 65 20 64 69 73 | Entries| are dis|
|00000640| 70 6c 61 79 65 64 20 77 | 69 74 68 20 61 6c 6c 20 |played w|ith all |
|00000650| 6f 66 20 74 68 65 69 72 | 20 73 75 62 2d 65 6e 74 |of their| sub-ent|
|00000660| 72 69 65 73 20 75 6e 6c | 65 73 73 0a 49 4e 43 4c |ries unl|ess.INCL|
|00000670| 55 44 45 2d 53 55 42 2d | 45 4e 54 52 49 45 53 20 |UDE-SUB-|ENTRIES |
|00000680| 69 73 20 6e 69 6c 20 61 | 6e 64 20 6f 70 74 69 6f |is nil a|nd optio|
|00000690| 6e 61 6c 20 4e 4f 2d 53 | 55 42 2d 45 4e 54 52 49 |nal NO-S|UB-ENTRI|
|000006a0| 45 53 2d 4f 55 54 20 66 | 6c 61 67 20 69 73 20 6e |ES-OUT f|lag is n|
|000006b0| 6f 6e 2d 6e 69 6c 2e 0a | 46 55 4e 43 20 73 68 6f |on-nil..|FUNC sho|
|000006c0| 75 6c 64 20 75 73 65 20 | 74 68 65 20 66 72 65 65 |uld use |the free|
|000006d0| 20 76 61 72 69 61 62 6c | 65 73 20 27 73 74 61 72 | variabl|es 'star|
|000006e0| 74 27 20 61 6e 64 20 27 | 65 6e 64 27 20 77 68 69 |t' and '|end' whi|
|000006f0| 63 68 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 6c |ch conta|in the l|
|00000700| 69 6d 69 74 73 0a 6f 66 | 20 74 68 65 20 72 65 67 |imits.of| the reg|
|00000710| 69 6f 6e 20 6f 6e 20 77 | 68 69 63 68 20 69 74 20 |ion on w|hich it |
|00000720| 73 68 6f 75 6c 64 20 6f | 70 65 72 61 74 65 2e 20 |should o|perate. |
|00000730| 20 52 65 74 75 72 6e 73 | 20 6e 75 6d 62 65 72 20 | Returns| number |
|00000740| 6f 66 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |of appli|cations |
|00000750| 6f 66 0a 46 55 4e 43 20 | 74 68 61 74 20 72 65 74 |of.FUNC |that ret|
|00000760| 75 72 6e 20 6e 6f 6e 2d | 6e 69 6c 2e 22 20 22 78 |urn non-|nil." "x|
|00000770| 4c 6f 67 69 63 20 66 75 | 6e 63 74 69 6f 6e 20 6f |Logic fu|nction o|
|00000780| 66 20 6e 6f 20 61 72 67 | 75 6d 65 6e 74 73 2c 20 |f no arg|uments, |
|00000790| 28 6c 61 6d 62 64 61 20 | 28 29 20 28 3c 66 75 6e |(lambda |() (<fun|
|000007a0| 63 74 69 6f 6e 20 63 61 | 6c 6c 73 3e 29 3a 20 22 |ction ca|lls>): "|
|000007b0| 5d 29 0a 28 66 73 65 74 | 20 27 72 6f 6c 6f 2d 6d |]).(fset| 'rolo-m|
|000007c0| 61 70 2d 6c 6f 67 69 63 | 20 23 5b 28 66 75 6e 63 |ap-logic| #[(func|
|000007d0| 20 72 6f 6c 6f 2d 62 75 | 66 20 26 6f 70 74 69 6f | rolo-bu|f &optio|
|000007e0| 6e 61 6c 20 63 6f 75 6e | 74 2d 6f 6e 6c 79 20 69 |nal coun|t-only i|
|000007f0| 6e 63 6c 75 64 65 2d 73 | 75 62 2d 65 6e 74 72 69 |nclude-s|ub-entri|
|00000800| 65 73 20 6e 6f 2d 73 75 | 62 2d 65 6e 74 72 69 65 |es no-su|b-entrie|
|00000810| 73 2d 6f 75 74 29 20 22 | c0 09 21 ac 8f c2 09 21 |s-out) "|..!....!|
|00000820| 83 ce 00 c3 09 c4 5c 22 | 89 11 83 ce 00 c5 0e 06 |......\"|........|
|00000830| 21 71 1e 07 c8 1e 09 c8 | ca 1e 0b 1e 0c 09 71 88 |!q......|......q.|
|00000840| 65 62 88 cd 0e 0e c8 c4 | cf 24 ab 88 c8 79 88 65 |eb......|.$...y.e|
|00000850| 60 42 16 0c c8 1e 10 c8 | 1e 11 c8 1e 12 c8 1e 13 |`B......|........|
|00000860| cd 0e 14 c8 c4 23 ab f6 | 8a ca 79 88 60 29 16 10 |.....#..|..y.`)..|
|00000870| c8 16 15 60 16 12 0e 10 | 0e 12 7b 16 13 d6 0e 17 |...`....|..{.....|
|00000880| 0e 13 5c 22 16 11 0e 18 | 20 1e 19 0e 1a ac 99 0e |..\"....| .......|
|00000890| 19 ab 95 0e 0b ca 55 ab | 8f 0e 0c ab 8b db 0e 07 |......U.|........|
|000008a0| 0e 0c 40 0e 0c 41 23 88 | 0e 19 ab ac 0e 11 62 88 |..@..A#.|......b.|
|000008b0| 0e 0b 54 16 0b 0e 17 ac | 84 0e 1c ab 84 0e 11 aa |..T.....|........|
|000008c0| 86 d6 c4 0e 13 5c 22 62 | 16 11 0e 1a ac 8f db 0e |.....\"b|........|
|000008d0| 07 0e 10 0e 11 23 88 aa | 84 0e 12 62 88 29 aa 02 |.....#..|...b.)..|
|000008e0| 2c dd 09 21 88 0e 0b 2c | 87 ca 87 22 20 5b 62 75 |,..!...,|..." [bu|
|000008f0| 66 66 65 72 70 20 72 6f | 6c 6f 2d 62 75 66 20 66 |fferp ro|lo-buf f|
|00000900| 69 6c 65 2d 65 78 69 73 | 74 73 2d 70 20 66 69 6e |ile-exis|ts-p fin|
|00000910| 64 2d 66 69 6c 65 2d 6e | 6f 73 65 6c 65 63 74 20 |d-file-n|oselect |
|00000920| 74 20 67 65 74 2d 62 75 | 66 66 65 72 2d 63 72 65 |t get-bu|ffer-cre|
|00000930| 61 74 65 20 72 6f 6c 6f | 2d 64 69 73 70 6c 61 79 |ate rolo|-display|
|00000940| 2d 62 75 66 66 65 72 20 | 64 69 73 70 6c 61 79 2d |-buffer |display-|
|00000950| 62 75 66 20 6e 69 6c 20 | 62 75 66 66 65 72 2d 72 |buf nil |buffer-r|
|00000960| 65 61 64 2d 6f 6e 6c 79 | 20 30 20 6e 75 6d 2d 66 |ead-only| 0 num-f|
|00000970| 6f 75 6e 64 20 68 64 72 | 2d 70 6f 73 20 72 65 2d |ound hdr|-pos re-|
|00000980| 73 65 61 72 63 68 2d 66 | 6f 72 77 61 72 64 20 72 |search-f|orward r|
|00000990| 6f 6c 6f 2d 68 64 72 2d | 72 65 67 65 78 70 20 32 |olo-hdr-|regexp 2|
|000009a0| 20 73 74 61 72 74 20 65 | 6e 64 20 65 6e 64 2d 65 | start e|nd end-e|
|000009b0| 6e 74 72 79 2d 68 64 72 | 20 63 75 72 72 2d 65 6e |ntry-hdr| curr-en|
|000009c0| 74 72 79 2d 6c 65 76 65 | 6c 20 72 6f 6c 6f 2d 65 |try-leve|l rolo-e|
|000009d0| 6e 74 72 79 2d 72 65 67 | 65 78 70 20 6e 65 78 74 |ntry-reg|exp next|
|000009e0| 2d 65 6e 74 72 79 2d 65 | 78 69 73 74 73 20 72 6f |-entry-e|xists ro|
|000009f0| 6c 6f 2d 74 6f 2d 65 6e | 74 72 79 2d 65 6e 64 20 |lo-to-en|try-end |
|00000a00| 69 6e 63 6c 75 64 65 2d | 73 75 62 2d 65 6e 74 72 |include-|sub-entr|
|00000a10| 69 65 73 20 66 75 6e 63 | 20 66 75 6e 20 63 6f 75 |ies func| fun cou|
|00000a20| 6e 74 2d 6f 6e 6c 79 20 | 61 70 70 65 6e 64 2d 74 |nt-only |append-t|
|00000a30| 6f 2d 62 75 66 66 65 72 | 20 6e 6f 2d 73 75 62 2d |o-buffer| no-sub-|
|00000a40| 65 6e 74 72 69 65 73 2d | 6f 75 74 20 72 6f 6c 6f |entries-|out rolo|
|00000a50| 2d 6b 69 6c 6c 2d 62 75 | 66 66 65 72 5d 20 35 20 |-kill-bu|ffer] 5 |
|00000a60| 22 5c 0a 41 70 70 6c 79 | 20 46 55 4e 43 20 74 6f |"\.Apply| FUNC to|
|00000a70| 20 61 6c 6c 20 65 6e 74 | 72 69 65 73 20 69 6e 20 | all ent|ries in |
|00000a80| 52 4f 4c 4f 2d 42 55 46 | 2c 20 77 72 69 74 65 20 |ROLO-BUF|, write |
|00000a90| 74 6f 20 62 75 66 66 65 | 72 20 65 6e 74 72 69 65 |to buffe|r entrie|
|00000aa0| 73 20 77 68 65 72 65 20 | 46 55 4e 43 20 69 73 20 |s where |FUNC is |
|00000ab0| 6e 6f 6e 2d 6e 69 6c 2e | 0a 49 66 20 6f 70 74 69 |non-nil.|.If opti|
|00000ac0| 6f 6e 61 6c 20 43 4f 55 | 4e 54 2d 4f 4e 4c 59 20 |onal COU|NT-ONLY |
|00000ad0| 69 73 20 6e 6f 6e 2d 6e | 69 6c 2c 20 64 6f 6e 27 |is non-n|il, don'|
|00000ae0| 74 20 64 69 73 70 6c 61 | 79 20 65 6e 74 72 69 65 |t displa|y entrie|
|00000af0| 73 2c 20 72 65 74 75 72 | 6e 20 63 6f 75 6e 74 20 |s, retur|n count |
|00000b00| 6f 66 0a 6d 61 74 63 68 | 69 6e 67 20 65 6e 74 72 |of.match|ing entr|
|00000b10| 69 65 73 20 6f 6e 6c 79 | 2e 20 20 49 66 20 6f 70 |ies only|. If op|
|00000b20| 74 69 6f 6e 61 6c 20 49 | 4e 43 4c 55 44 45 2d 53 |tional I|NCLUDE-S|
|00000b30| 55 42 2d 45 4e 54 52 49 | 45 53 20 66 6c 61 67 20 |UB-ENTRI|ES flag |
|00000b40| 69 73 20 6e 6f 6e 2d 6e | 69 6c 2c 20 46 55 4e 43 |is non-n|il, FUNC|
|00000b50| 0a 77 69 6c 6c 20 62 65 | 20 61 70 70 6c 69 65 64 |.will be| applied|
|00000b60| 20 61 63 72 6f 73 73 20 | 61 6c 6c 20 73 75 62 2d | across |all sub-|
|00000b70| 65 6e 74 72 69 65 73 20 | 61 74 20 6f 6e 63 65 2e |entries |at once.|
|00000b80| 20 20 44 65 66 61 75 6c | 74 20 69 73 20 74 6f 20 | Defaul|t is to |
|00000b90| 61 70 70 6c 79 20 46 55 | 4e 43 20 74 6f 0a 65 61 |apply FU|NC to.ea|
|00000ba0| 63 68 20 65 6e 74 72 79 | 20 61 6e 64 20 73 75 62 |ch entry| and sub|
|00000bb0| 2d 65 6e 74 72 79 20 73 | 65 70 61 72 61 74 65 6c |-entry s|eparatel|
|00000bc0| 79 2e 20 20 45 6e 74 72 | 69 65 73 20 61 72 65 20 |y. Entr|ies are |
|00000bd0| 64 69 73 70 6c 61 79 65 | 64 20 77 69 74 68 20 61 |displaye|d with a|
|00000be0| 6c 6c 20 6f 66 20 74 68 | 65 69 72 0a 73 75 62 2d |ll of th|eir.sub-|
|00000bf0| 65 6e 74 72 69 65 73 20 | 75 6e 6c 65 73 73 20 49 |entries |unless I|
|00000c00| 4e 43 4c 55 44 45 2d 53 | 55 42 2d 45 4e 54 52 49 |NCLUDE-S|UB-ENTRI|
|00000c10| 45 53 20 69 73 20 6e 69 | 6c 20 61 6e 64 20 6f 70 |ES is ni|l and op|
|00000c20| 74 69 6f 6e 61 6c 20 4e | 4f 2d 53 55 42 2d 45 4e |tional N|O-SUB-EN|
|00000c30| 54 52 49 45 53 2d 4f 55 | 54 0a 66 6c 61 67 20 69 |TRIES-OU|T.flag i|
|00000c40| 73 20 6e 6f 6e 2d 6e 69 | 6c 2e 20 20 46 55 4e 43 |s non-ni|l. FUNC|
|00000c50| 20 73 68 6f 75 6c 64 20 | 75 73 65 20 74 68 65 20 | should |use the |
|00000c60| 66 72 65 65 20 76 61 72 | 69 61 62 6c 65 73 20 27 |free var|iables '|
|00000c70| 73 74 61 72 74 27 20 61 | 6e 64 20 27 65 6e 64 27 |start' a|nd 'end'|
|00000c80| 20 77 68 69 63 68 0a 63 | 6f 6e 74 61 69 6e 20 74 | which.c|ontain t|
|00000c90| 68 65 20 6c 69 6d 69 74 | 73 20 6f 66 20 74 68 65 |he limit|s of the|
|00000ca0| 20 72 65 67 69 6f 6e 20 | 6f 6e 20 77 68 69 63 68 | region |on which|
|00000cb0| 20 69 74 20 73 68 6f 75 | 6c 64 20 6f 70 65 72 61 | it shou|ld opera|
|00000cc0| 74 65 2e 20 20 52 65 74 | 75 72 6e 73 20 6e 75 6d |te. Ret|urns num|
|00000cd0| 62 65 72 0a 6f 66 20 61 | 70 70 6c 69 63 61 74 69 |ber.of a|pplicati|
|00000ce0| 6f 6e 73 20 6f 66 20 46 | 55 4e 43 20 74 68 61 74 |ons of F|UNC that|
|00000cf0| 20 72 65 74 75 72 6e 20 | 6e 6f 6e 2d 6e 69 6c 2e | return |non-nil.|
|00000d00| 22 5d 29 0a 28 66 73 65 | 74 20 27 72 6f 6c 6f 2d |"]).(fse|t 'rolo-|
|00000d10| 6e 6f 74 20 23 5b 28 26 | 72 65 73 74 20 70 61 74 |not #[(&|rest pat|
|00000d20| 2d 6c 69 73 74 29 20 22 | c0 19 5c 6e ab 9d 5c 6e |-list) "|..\n..\n|
|00000d30| 40 89 11 ab 91 09 c3 3d | ac 92 0c 62 ab 8e c5 09 |@......=|...b....|
|00000d40| 0e 06 c3 23 ac 86 5c 6e | 41 89 12 ac 63 5c 6e 3f |...#..\n|A...c\n?|
|00000d50| ad 81 c3 29 87 22 20 5b | 6e 69 6c 20 70 61 74 20 |...)." [|nil pat |
|00000d60| 70 61 74 2d 6c 69 73 74 | 20 74 20 73 74 61 72 74 |pat-list| t start|
|00000d70| 20 73 65 61 72 63 68 2d | 66 6f 72 77 61 72 64 20 | search-|forward |
|00000d80| 65 6e 64 5d 20 35 20 22 | 5c 0a 4c 6f 67 69 63 61 |end] 5 "|\.Logica|
|00000d90| 6c 20 3c 6e 6f 74 3e 20 | 72 6f 6c 6f 64 65 78 20 |l <not> |rolodex |
|00000da0| 65 6e 74 72 79 20 66 69 | 6c 74 65 72 2e 20 20 50 |entry fi|lter. P|
|00000db0| 41 54 2d 4c 49 53 54 20 | 69 73 20 61 20 6c 69 73 |AT-LIST |is a lis|
|00000dc0| 74 20 6f 66 20 70 61 74 | 74 65 72 6e 20 65 6c 65 |t of pat|tern ele|
|00000dd0| 6d 65 6e 74 73 2e 0a 45 | 61 63 68 20 65 6c 65 6d |ments..E|ach elem|
|00000de0| 65 6e 74 20 6d 61 79 20 | 62 65 20 74 2c 20 6e 69 |ent may |be t, ni|
|00000df0| 6c 2c 20 6f 72 20 61 20 | 73 74 72 69 6e 67 2e 22 |l, or a |string."|
|00000e00| 5d 29 0a 28 66 73 65 74 | 20 27 72 6f 6c 6f 2d 6f |]).(fset| 'rolo-o|
|00000e10| 72 20 23 5b 28 26 72 65 | 73 74 20 70 61 74 2d 6c |r #[(&re|st pat-l|
|00000e20| 69 73 74 29 20 22 c0 09 | 3e ab 82 c0 87 c2 1b 09 |ist) "..|>.......|
|00000e30| ab 9d 09 40 89 13 ab 91 | 0b c0 3d ac 92 0c 62 ab |...@....|..=...b.|
|00000e40| 8e c5 0b 0e 06 c0 23 ac | 86 09 41 89 11 ac 63 09 |......#.|..A...c.|
|00000e50| ad 81 c0 29 87 22 20 5b | 74 20 70 61 74 2d 6c 69 |...)." [|t pat-li|
|00000e60| 73 74 20 6e 69 6c 20 70 | 61 74 20 73 74 61 72 74 |st nil p|at start|
|00000e70| 20 73 65 61 72 63 68 2d | 66 6f 72 77 61 72 64 20 | search-|forward |
|00000e80| 65 6e 64 5d 20 35 20 22 | 5c 0a 4c 6f 67 69 63 61 |end] 5 "|\.Logica|
|00000e90| 6c 20 3c 6f 72 3e 20 72 | 6f 6c 6f 64 65 78 20 65 |l <or> r|olodex e|
|00000ea0| 6e 74 72 79 20 66 69 6c | 74 65 72 2e 20 20 50 41 |ntry fil|ter. PA|
|00000eb0| 54 2d 4c 49 53 54 20 69 | 73 20 61 20 6c 69 73 74 |T-LIST i|s a list|
|00000ec0| 20 6f 66 20 70 61 74 74 | 65 72 6e 20 65 6c 65 6d | of patt|ern elem|
|00000ed0| 65 6e 74 73 2e 0a 45 61 | 63 68 20 65 6c 65 6d 65 |ents..Ea|ch eleme|
|00000ee0| 6e 74 20 6d 61 79 20 62 | 65 20 74 2c 20 6e 69 6c |nt may b|e t, nil|
|00000ef0| 2c 20 6f 72 20 61 20 73 | 74 72 69 6e 67 2e 22 5d |, or a s|tring."]|
|00000f00| 29 0a 28 66 73 65 74 20 | 27 72 6f 6c 6f 2d 78 6f |).(fset |'rolo-xo|
|00000f10| 72 20 23 5b 28 26 72 65 | 73 74 20 70 61 74 2d 6c |r #[(&re|st pat-l|
|00000f20| 69 73 74 29 20 22 c0 c1 | 1a 1b 0c ab a6 0c 40 89 |ist) "..|......@.|
|00000f30| 13 ab 95 0b c5 3d ac 8d | 0e 06 62 ab 88 c7 0b 0e |.....=..|..b.....|
|00000f40| 08 c5 23 ab 83 5c 6e 54 | 12 5c 6e c9 57 ab 86 0c |..#..\nT|.\n.W...|
|00000f50| 41 89 14 ac 5a 5c 6e ca | 55 2a 87 22 20 5b 6e 69 |A...Z\n.|U*." [ni|
|00000f60| 6c 20 30 20 6d 61 74 63 | 68 65 73 20 70 61 74 20 |l 0 matc|hes pat |
|00000f70| 70 61 74 2d 6c 69 73 74 | 20 74 20 73 74 61 72 74 |pat-list| t start|
|00000f80| 20 73 65 61 72 63 68 2d | 66 6f 72 77 61 72 64 20 | search-|forward |
|00000f90| 65 6e 64 20 32 20 31 5d | 20 35 20 22 5c 0a 4c 6f |end 2 1]| 5 "\.Lo|
|00000fa0| 67 69 63 61 6c 20 3c 78 | 6f 72 3e 20 72 6f 6c 6f |gical <x|or> rolo|
|00000fb0| 64 65 78 20 65 6e 74 72 | 79 20 66 69 6c 74 65 72 |dex entr|y filter|
|00000fc0| 2e 20 20 50 41 54 2d 4c | 49 53 54 20 69 73 20 61 |. PAT-L|IST is a|
|00000fd0| 20 6c 69 73 74 20 6f 66 | 20 70 61 74 74 65 72 6e | list of| pattern|
|00000fe0| 20 65 6c 65 6d 65 6e 74 | 73 2e 0a 45 61 63 68 20 | element|s..Each |
|00000ff0| 65 6c 65 6d 65 6e 74 20 | 6d 61 79 20 62 65 20 74 |element |may be t|
|00001000| 2c 20 6e 69 6c 2c 20 6f | 72 20 61 20 73 74 72 69 |, nil, o|r a stri|
|00001010| 6e 67 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 72 6f |ng."]).(|fset 'ro|
|00001020| 6c 6f 2d 61 6e 64 20 23 | 5b 28 26 72 65 73 74 20 |lo-and #|[(&rest |
|00001030| 70 61 74 2d 6c 69 73 74 | 29 20 22 c0 09 3e 3f ad |pat-list|) "..>?.|
|00001040| a8 c0 1a 09 ab 9d 09 40 | 89 12 ab 97 5c 6e c3 3d |.......@|....\n.=|
|00001050| ac 8c 0c 62 ab 88 c5 5c | 6e 0e 06 c3 23 ab 86 09 |...b...\|n...#...|
|00001060| 41 89 11 ac 63 09 3f ad | 81 c3 29 87 22 20 5b 6e |A...c.?.|..)." [n|
|00001070| 69 6c 20 70 61 74 2d 6c | 69 73 74 20 70 61 74 20 |il pat-l|ist pat |
|00001080| 74 20 73 74 61 72 74 20 | 73 65 61 72 63 68 2d 66 |t start |search-f|
|00001090| 6f 72 77 61 72 64 20 65 | 6e 64 5d 20 35 20 22 5c |orward e|nd] 5 "\|
|000010a0| 0a 4c 6f 67 69 63 61 6c | 20 3c 61 6e 64 3e 20 72 |.Logical| <and> r|
|000010b0| 6f 6c 6f 64 65 78 20 65 | 6e 74 72 79 20 66 69 6c |olodex e|ntry fil|
|000010c0| 74 65 72 2e 20 20 50 41 | 54 2d 4c 49 53 54 20 69 |ter. PA|T-LIST i|
|000010d0| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 70 61 74 74 |s a list| of patt|
|000010e0| 65 72 6e 20 65 6c 65 6d | 65 6e 74 73 2e 0a 45 61 |ern elem|ents..Ea|
|000010f0| 63 68 20 65 6c 65 6d 65 | 6e 74 20 6d 61 79 20 62 |ch eleme|nt may b|
|00001100| 65 20 74 2c 20 6e 69 6c | 2c 20 6f 72 20 61 20 73 |e t, nil|, or a s|
|00001110| 74 72 69 6e 67 2e 22 5d | 29 0a 28 66 73 65 74 20 |tring."]|).(fset |
|00001120| 27 72 6f 6c 6f 2d 72 2d | 6e 6f 74 20 23 5b 28 26 |'rolo-r-|not #[(&|
|00001130| 72 65 73 74 20 70 61 74 | 2d 6c 69 73 74 29 20 22 |rest pat|-list) "|
|00001140| c0 19 5c 6e ab 9d 5c 6e | 40 89 11 ab 91 09 c3 3d |..\n..\n|@......=|
|00001150| ac 92 0c 62 ab 8e c5 09 | 0e 06 c3 23 ac 86 5c 6e |...b....|...#..\n|
|00001160| 41 89 12 ac 63 5c 6e 3f | ad 81 c3 29 87 22 20 5b |A...c\n?|...)." [|
|00001170| 6e 69 6c 20 70 61 74 20 | 70 61 74 2d 6c 69 73 74 |nil pat |pat-list|
|00001180| 20 74 20 73 74 61 72 74 | 20 72 65 2d 73 65 61 72 | t start| re-sear|
|00001190| 63 68 2d 66 6f 72 77 61 | 72 64 20 65 6e 64 5d 20 |ch-forwa|rd end] |
|000011a0| 35 20 22 5c 0a 4c 6f 67 | 69 63 61 6c 20 3c 6e 6f |5 "\.Log|ical <no|
|000011b0| 74 3e 20 72 6f 6c 6f 64 | 65 78 20 65 6e 74 72 79 |t> rolod|ex entry|
|000011c0| 20 66 69 6c 74 65 72 2e | 20 20 50 41 54 2d 4c 49 | filter.| PAT-LI|
|000011d0| 53 54 20 69 73 20 61 20 | 6c 69 73 74 20 6f 66 20 |ST is a |list of |
|000011e0| 70 61 74 74 65 72 6e 20 | 65 6c 65 6d 65 6e 74 73 |pattern |elements|
|000011f0| 2e 0a 45 61 63 68 20 65 | 6c 65 6d 65 6e 74 20 6d |..Each e|lement m|
|00001200| 61 79 20 62 65 20 74 2c | 20 6e 69 6c 2c 20 6f 72 |ay be t,| nil, or|
|00001210| 20 61 20 73 74 72 69 6e | 67 2e 22 5d 29 0a 28 66 | a strin|g."]).(f|
|00001220| 73 65 74 20 27 72 6f 6c | 6f 2d 72 2d 6f 72 20 23 |set 'rol|o-r-or #|
|00001230| 5b 28 26 72 65 73 74 20 | 70 61 74 2d 6c 69 73 74 |[(&rest |pat-list|
|00001240| 29 20 22 c0 09 3e ab 82 | c0 87 c2 1b 09 ab 9d 09 |) "..>..|........|
|00001250| 40 89 13 ab 91 0b c0 3d | ac 92 0c 62 ab 8e c5 0b |@......=|...b....|
|00001260| 0e 06 c0 23 ac 86 09 41 | 89 11 ac 63 09 ad 81 c0 |...#...A|...c....|
|00001270| 29 87 22 20 5b 74 20 70 | 61 74 2d 6c 69 73 74 20 |)." [t p|at-list |
|00001280| 6e 69 6c 20 70 61 74 20 | 73 74 61 72 74 20 72 65 |nil pat |start re|
|00001290| 2d 73 65 61 72 63 68 2d | 66 6f 72 77 61 72 64 20 |-search-|forward |
|000012a0| 65 6e 64 5d 20 35 20 22 | 5c 0a 4c 6f 67 69 63 61 |end] 5 "|\.Logica|
|000012b0| 6c 20 3c 6f 72 3e 20 72 | 6f 6c 6f 64 65 78 20 65 |l <or> r|olodex e|
|000012c0| 6e 74 72 79 20 66 69 6c | 74 65 72 2e 20 20 50 41 |ntry fil|ter. PA|
|000012d0| 54 2d 4c 49 53 54 20 69 | 73 20 61 20 6c 69 73 74 |T-LIST i|s a list|
|000012e0| 20 6f 66 20 70 61 74 74 | 65 72 6e 20 65 6c 65 6d | of patt|ern elem|
|000012f0| 65 6e 74 73 2e 0a 45 61 | 63 68 20 65 6c 65 6d 65 |ents..Ea|ch eleme|
|00001300| 6e 74 20 6d 61 79 20 62 | 65 20 74 2c 20 6e 69 6c |nt may b|e t, nil|
|00001310| 2c 20 6f 72 20 61 20 73 | 74 72 69 6e 67 2e 22 5d |, or a s|tring."]|
|00001320| 29 0a 28 66 73 65 74 20 | 27 72 6f 6c 6f 2d 72 2d |).(fset |'rolo-r-|
|00001330| 78 6f 72 20 23 5b 28 26 | 72 65 73 74 20 70 61 74 |xor #[(&|rest pat|
|00001340| 2d 6c 69 73 74 29 20 22 | c0 c1 1a 1b 0c ab a6 0c |-list) "|........|
|00001350| 40 89 13 ab 95 0b c5 3d | ac 8d 0e 06 62 ab 88 c7 |@......=|....b...|
|00001360| 0b 0e 08 c5 23 ab 83 5c | 6e 54 12 5c 6e c9 57 ab |....#..\|nT.\n.W.|
|00001370| 86 0c 41 89 14 ac 5a 5c | 6e ca 55 2a 87 22 20 5b |..A...Z\|n.U*." [|
|00001380| 6e 69 6c 20 30 20 6d 61 | 74 63 68 65 73 20 70 61 |nil 0 ma|tches pa|
|00001390| 74 20 70 61 74 2d 6c 69 | 73 74 20 74 20 73 74 61 |t pat-li|st t sta|
|000013a0| 72 74 20 72 65 2d 73 65 | 61 72 63 68 2d 66 6f 72 |rt re-se|arch-for|
|000013b0| 77 61 72 64 20 65 6e 64 | 20 32 20 31 5d 20 35 20 |ward end| 2 1] 5 |
|000013c0| 22 5c 0a 4c 6f 67 69 63 | 61 6c 20 3c 78 6f 72 3e |"\.Logic|al <xor>|
|000013d0| 20 72 6f 6c 6f 64 65 78 | 20 65 6e 74 72 79 20 66 | rolodex| entry f|
|000013e0| 69 6c 74 65 72 2e 20 20 | 50 41 54 2d 4c 49 53 54 |ilter. |PAT-LIST|
|000013f0| 20 69 73 20 61 20 6c 69 | 73 74 20 6f 66 20 70 61 | is a li|st of pa|
|00001400| 74 74 65 72 6e 20 65 6c | 65 6d 65 6e 74 73 2e 0a |ttern el|ements..|
|00001410| 45 61 63 68 20 65 6c 65 | 6d 65 6e 74 20 6d 61 79 |Each ele|ment may|
|00001420| 20 62 65 20 74 2c 20 6e | 69 6c 2c 20 6f 72 20 61 | be t, n|il, or a|
|00001430| 20 73 74 72 69 6e 67 2e | 22 5d 29 0a 28 66 73 65 | string.|"]).(fse|
|00001440| 74 20 27 72 6f 6c 6f 2d | 72 2d 61 6e 64 20 23 5b |t 'rolo-|r-and #[|
|00001450| 28 26 72 65 73 74 20 70 | 61 74 2d 6c 69 73 74 29 |(&rest p|at-list)|
|00001460| 20 22 c0 09 3e 3f ad a8 | c0 1a 09 ab 9d 09 40 89 | "..>?..|......@.|
|00001470| 12 ab 97 5c 6e c3 3d ac | 8c 0c 62 ab 88 c5 5c 6e |...\n.=.|..b...\n|
|00001480| 0e 06 c3 23 ab 86 09 41 | 89 11 ac 63 09 3f ad 81 |...#...A|...c.?..|
|00001490| c3 29 87 22 20 5b 6e 69 | 6c 20 70 61 74 2d 6c 69 |.)." [ni|l pat-li|
|000014a0| 73 74 20 70 61 74 20 74 | 20 73 74 61 72 74 20 72 |st pat t| start r|
|000014b0| 65 2d 73 65 61 72 63 68 | 2d 66 6f 72 77 61 72 64 |e-search|-forward|
|000014c0| 20 65 6e 64 5d 20 35 20 | 22 5c 0a 4c 6f 67 69 63 | end] 5 |"\.Logic|
|000014d0| 61 6c 20 3c 61 6e 64 3e | 20 72 6f 6c 6f 64 65 78 |al <and>| rolodex|
|000014e0| 20 65 6e 74 72 79 20 66 | 69 6c 74 65 72 2e 20 20 | entry f|ilter. |
|000014f0| 50 41 54 2d 4c 49 53 54 | 20 69 73 20 61 20 6c 69 |PAT-LIST| is a li|
|00001500| 73 74 20 6f 66 20 70 61 | 74 74 65 72 6e 20 65 6c |st of pa|ttern el|
|00001510| 65 6d 65 6e 74 73 2e 0a | 45 61 63 68 20 65 6c 65 |ements..|Each ele|
|00001520| 6d 65 6e 74 20 6d 61 79 | 20 62 65 20 74 2c 20 6e |ment may| be t, n|
|00001530| 69 6c 2c 20 6f 72 20 61 | 20 73 74 72 69 6e 67 2e |il, or a| string.|
|00001540| 22 5d 29 0a 28 70 72 6f | 76 69 64 65 20 27 77 72 |"]).(pro|vide 'wr|
|00001550| 6f 6c 6f 2d 6c 6f 67 69 | 63 29 0a |olo-logi|c). |
+--------+-------------------------+-------------------------+--------+--------+